from rest_framework import viewsets
from manage.models.goods import Category
from manage.serializers.goods import CategorySerializer

# 分类接口
class CategoryViewSet(viewsets.ModelViewSet):
    queryset = Category.objects.all()
    serializer_class =CategorySerializer